package com.example.administrator.idocment.msgpack.modelpack;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by Administrator on 2017/9/6 0006.
 */
public class PicModel implements Parcelable {

    String imgPath;

    Boolean imgSelect = false;

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }


    public Boolean getImgSelect() {
        return imgSelect;
    }

    public void setImgSelect(Boolean imgSelect) {
        this.imgSelect = imgSelect;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.imgPath);
        dest.writeValue(this.imgSelect);
    }

    public PicModel() {
    }

    protected PicModel(Parcel in) {
        this.imgPath = in.readString();
        this.imgSelect = (Boolean) in.readValue(Boolean.class.getClassLoader());
    }

    public static final Creator<PicModel> CREATOR = new Creator<PicModel>() {
        @Override
        public PicModel createFromParcel(Parcel source) {
            return new PicModel(source);
        }

        @Override
        public PicModel[] newArray(int size) {
            return new PicModel[size];
        }
    };
}